package com.plan.service.uesr;

import com.plan.controller.user.response.UserVO;
import com.plan.entity.user.User;

import javax.servlet.http.HttpServletRequest;

public interface AuthManager {
    String creatToken(User user);

    UserVO getUserForToken(HttpServletRequest request);

    UserVO getUserForToken(String token);

    UserVO getUserByIdFromCache(Long userId);

    boolean isExpiration(String token);

    Integer getPackageId(String uri);

    void clearUser(Long userId);
}
